﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ZSZ.IService;

namespace TestAutoFac.Areas.WebAdmin.Controllers
{
    public class HomeController : Controller
    {
        public IRoleService RoleService { get; set; }
        // GET: WebAdmin/Home
        public ActionResult Index()
        {
            List<string> list = RoleService.GetAll().Select(r => r.Name).ToList();
            return Content(string.Join(",", list));
            //return View();
        }
    }
}